using System;
using System.Collections.Generic;
using System.Collections;
using System.Text;

namespace MVCFramework.Presenter
{
    public class ActionEventArgs : EventArgs  
    {
        object selected;
        ArrayList list;
        double[] coordinates;

        public double[] Coordinates
        {
            get { return coordinates; }
            set { coordinates = value; }
        }
        double[] worldcoord;

        public double[] Worldcoord
        {
            get { return worldcoord; }
            set { worldcoord = value; }
        }

        public ArrayList List
        {
            get { return list; }
            set { list = value; }
        }

        ///<summary>
        /// Constructor
        /// </summary>
        /// <param name="selected">An object</param>
        public ActionEventArgs(object selected)
        {
            this.Selected = selected;
        }

        public ActionEventArgs(ArrayList list, double[] coordinates)
        {
            this.list = list;
            this.coordinates = coordinates;
        }

        public ActionEventArgs(double[] coordinates)
        {
            this.coordinates = coordinates;
        }

        public ActionEventArgs(ArrayList list)
        {
            this.list = list;
        }

        public ActionEventArgs()
        {

        }

        public object Selected
        {
            set
            {
                selected = value;
            }

            get
            {
                return selected;
            }
        }
    }

    public delegate bool ActionHandler(object sender, ActionEventArgs e);
}
